#!/bin/bash
# filter values above threshold and count
#usage: ./countGoddBad <filename> <column>
cat $1 | cut -s -f$2 | awk '
{
if ($1==1){
good+=1;
}	
}END{
print good}'

